jQuery.validator.addMethod("istelephone", function(value, element) {  
     var length = value.length;     
     var mobile = /^(((13[0-9]{1})|(15[0-9]{1}))+\d{8})$/;     
     return (length == 11 && mobile.exec(value))? true:false;  
 }, "请正确填写您的手机号码");  

jQuery.validator.addMethod("ismobile", function(value, element) {  
    var mobile = /(^(0\d{2})-(\d{8})$)|(^(0\d{3})-(\d{7})$)|(^(0\d{2})-(\d{8})-(\d+)$)|(^(0\d{3})-(\d{7})-(\d+)$)/;     
    return (mobile.exec(value))? true:false;  
}, "请正确填写您的固定电话号码");  

function errorPlacement (lable, element) {

   if (element.hasClass("l-textarea")) {
      element.addClass("l-textarea-invalid");
   }else if (element.hasClass("l-text-field")) {
      element.parent().addClass("l-text-invalid");
   }

   var nextCell = element.parents("td:first").next("td");
   nextCell.find("div.l-exclamation").remove(); 
   $('<div class="l-exclamation" title="' + lable.html() + '"></div>').appendTo(nextCell).ligerTip(); 
}

 function mess (lable) {
   var element = $("#" + lable.attr("for"));
   var nextCell = element.parents("td:first").next("td");
   if (element.hasClass("l-textarea")) {
       element.removeClass("l-textarea-invalid");
    } else if (element.hasClass("l-text-field")) {
        element.parent().removeClass("l-text-invalid");
    }
        nextCell.find("div.l-exclamation").remove();
}